<template>
  <div>
    <h1>大文件上传模块</h1>
    <FileChunkUpload ref="fileChunkUpload" />

    <el-input v-model="fileInput" type="text" />
    <el-button @click="fileChunkInput">上传</el-button>
  </div>
</template>

<script setup lang="ts">
import { ref, defineOptions,onUnmounted } from "vue";
import { Uploader } from "@/components/utils/uploader";
import FileChunkUpload from "@/components/upload/FileChunkUpload.vue";

defineOptions({
  name: "bigFileUpload", // 在 setup 语法糖中定义名称
});

const fileInput = ref<string|null>(null);
const fileChunkInput=()=>{
  fileInput.value ='呵呵';
}

onUnmounted(()=>{
  console.log('大文件上传模块卸载');
})
</script>
